import store from '../store/index'

export function Error (timeout, message) {
  store.dispatch('setTimeout', timeout)
  store.dispatch('setErrorMessage', message)
  store.dispatch('setVisible', true)
}
